﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using COM.OA.Entity;
using System.Collections.Generic;
using COM.OA.BLL;

public partial class qs_wenjian_liebieguanli : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        IList<filetype> list = filetypeBLL.Select();
        List<filetype> lists = (List<filetype>)list;
        lists.Reverse();
        this.gdvLeiBei.DataSource = lists;
        this.gdvLeiBei.DataBind();
    }
    protected void btAddLeiBei_Click(object sender, EventArgs e)
    {
        string leibiename=this.txtLeiBeiName.Text;
        filetype ft = new filetype();
        ft.ftype_filetype = leibiename;
        filetypeBLL.Insert(ft);
        this.gengxin( );

    }
    public void gengxin() 
    {
        IList<filetype> list = filetypeBLL.Select();
        List<filetype> lists = (List<filetype>)list;
        lists.Reverse();
        this.gdvLeiBei.DataSource = lists;
        this.gdvLeiBei.DataBind();
    }
}
